package com.ruicar.afs.cloud.product.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruicar.afs.cloud.common.core.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author xudongdong
 * @date 2020-05-26
 */
@Data
@TableName("product_update_plan")
@ApiModel(value = "产品修改方案表")
@NoArgsConstructor
public class ProductUpdatePlan extends BaseEntity<ProductUpdatePlan> {
    /**
     * 产品方案ID
     */
    @ApiModelProperty(value = "产品方案ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long productPlanId;
    /**
     * 产品修改ID
     */
    @ApiModelProperty(value = "产品修改ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long productUpdateId;

    public ProductUpdatePlan(Long productPlanId, Long productUpdateId) {
        this.productPlanId = productPlanId;
        this.productUpdateId = productUpdateId;
    }
}
